package com.woniuxy.joylife.manager.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.joylife.manager.dao.OwnerChargeDao;
import com.woniuxy.joylife.manager.entity.OwnerChargeEntity;
import com.woniuxy.joylife.manager.service.OwnerChargeService;
import com.woniuxy.joylife.manager.utils.PageUtils;
import com.woniuxy.joylife.manager.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("ownerChargeService")
public class OwnerChargeServiceImpl extends ServiceImpl<OwnerChargeDao, OwnerChargeEntity> implements OwnerChargeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OwnerChargeEntity> page = this.page(
                new Query<OwnerChargeEntity>().getPage(params),
                new QueryWrapper<OwnerChargeEntity>()
        );

        return new PageUtils(page);
    }

}